angular.module('faApp')
  .service('millionService', [ 'ajaxService',function (ajaxService) {

    this.list = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("MILLION_LIST"),cfg || {});
    };  
    
    this.add = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("MILLION_ADD"),cfg || {});
    };  

    this.edit = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("MILLION_EDIT"),cfg || {});
    };  

    this.remove = function (cfg) {
      return ajaxService.jsonp(ajaxService.getApiUri("MILLION_REMOVE"),cfg || {});
    };  

}]);
 



